* Setup script for replication analysis
clear all
set more off


* Display Stata version
version

* Check required packages
foreach package in reghdfe estout ftools coefplot {
    capture which `package'
    if _rc == 111 {
        display as error "`package' is not installed"
        display as text "To install, type: ssc install `package'"
    }
    else {
        display as text "`package' is already installed"
        * Display version information if available
        capture which `package', version
    }
}


